package com.foreknow.homework;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        person person = new person();
        Computer computer = new Computer();
        rule rule = new rule();
        int a = 0;
            System.out.println("---------------欢迎来到游戏世界---------------");
            System.out.println("         **************************");
            System.out.println("         *********猜拳 开始*********");
            System.out.println("         **************************");
            System.out.println("出拳规则：1.剪刀 2.石头 3.布");
            System.out.println("请选择对方角色（1.刘备 2.孙权 3.曹操）");
            computer.name(a = input.nextInt());
            System.out.println("请输入你的姓名： ");
            person.name();
            System.out.println(person.getName()+"  VS  "+computer.getName());
            String go = "";
        System.out.println("要开始吗？(y/n)");
        go = input.next();
        if (go.equals("y")){
            System.out.println("请出拳：1.剪刀 2.石头 3.布（输入相应数字）");
            person.chuquan(input.nextInt());
            person.getJieguo();
            computer.chuquan();
            rule.bisai();
        }


    }
}
